package org.zfes.snowier.cloud.zbss.cms.words.dao;
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.zfes.snowier.common.dao.mybatis.BaseMapper;
import org.zfes.snowier.common.dao.params.ParamMap;
import org.zfes.snowier.cloud.zbss.cms.words.model.CmsWordsHistory;
import org.zfes.snowier.core.data.Record;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface CmsWordsHistoryMapper extends BaseMapper<CmsWordsHistory>{
	
	Long selectListCount(ParamMap params);
	
	List<Record> selectMapListPage(ParamMap params);
	
	List<CmsWordsHistory> selectModelListPage(ParamMap params);
	
	List<CmsWordsHistory> loadCmsWordsHistoryByUserId(@Param("userId") Long userId);
	
	void updateStatusByUserId(@Param("userId") Long userId,@Param("status")Byte status,@Param("updateTime") Date updateTime);
	
	int updateStatus(@Param("id")Long id, @Param("status")Byte status,@Param("updateTime") Date updateTime);
}
